<%@ page import="ro.gateway.aida.admin.ActivityObjectsOptions,

                 ro.xblue.translator.LanguageBean,

                 ro.xblue.translator.TranslatorUtils"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>

<trans:initPage module="prj_pages" />

<%

      String ctx = request.getContextPath();

      LanguageBean lang_bean = TranslatorUtils.getCurrentLanguage(request, application);

      String[] s_options = ActivityObjectsOptions.getInstance().getRegisteredObjects();

      ActivityObjectsOptions options = ActivityObjectsOptions.getInstance();

%>



<html>

<head>

<title>Romania Development Gateway - AIDA (under construction)</title>

	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

	<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

	<link rel="stylesheet" href="alf.css" type="text/css">

</head>



<body>

<jsp:include page="../header.jsp" />


<br>



<table width="60%" background=<%=ctx%>/images/pixelbgtable.gif cellpadding="4" cellspacing="1" class="text_search" align="center">
<tr>

            <td colspan="3" class="textalb">

            <trans:showPageMessage label="aoof.objectsconfigurator" />

            </td>

            

      </tr>



      <tr bgcolor="#FFFFFF" class="text_searchbold">

      <th><trans:showPageMessage label="aoof.field" /></th>

      <th><trans:showPageMessage label="aoof.enabled" /></th>

      <th><trans:showPageMessage label="aoof.mandatory" /></th>

      </tr>



<form action="<%=ctx%>/aoof.do" name="theform" method="POST">

      <% for (int i = 0; i < s_options.length; i++) { %>

      <tr bgcolor="#FFFFFF">

      <td><trans:showPageMessage label='<%=s_options[i]%>' /></td>

      <td>

      <input type="checkbox"

            name="en<%=s_options[i]%>" <%=options.isEnabled(s_options[i]) ? " checked=\"true\"" : ""%>

            value="true">

      </td>

      <td>

      <input type="checkbox"

            name="ma<%=s_options[i]%>" <%=options.isMandatory(s_options[i]) ? " checked=\"true\"" : ""%>

            value="true">

      </td>

      </tr>

      <% } %>

      <tr bgcolor="#FFFFFF">

            <td colspan="3" align="center">

                  <input type="hidden" name="action" value="cancel">

                  <input

                        type="button" onclick="javascript:document.theform.action.value='save';document.theform.submit();"

                        value='<trans:showPageMessage label="Save" hide_link="true"/>'

                        class="butonsave"

                  />

                  <input

                        type="button" onclick="javascript:document.theform.action.value='cancel';document.theform.submit();"

                        value='<trans:showPageMessage label="Cancel" hide_link="true"/>'

                        class="butonsave"

                  />

            </td>

      </tr>

</form>

</tr>



</table>
<trans:showPageMessage label="translator.showhiddentags"/>



<jsp:include page="../footer.jsp" />

</body>



</html>

